package com.awakensoftware.hunterserver.repositories;

import com.awakensoftware.hunterserver.serverentities.ServerEntityBase;

public abstract class ServerEntityRepositoryBase<TServerEntityType extends ServerEntityBase> extends RepositoryBase {

	public void create(TServerEntityType serverEntity) {
		entityManager.persist(serverEntity);
	}

	public void update(TServerEntityType serverEntity) {
		entityManager.merge(serverEntity);
	}
	
	public abstract TServerEntityType getById(long id);

}
